<script lang="ts" setup>
import { reactive } from 'vue'
const formList = reactive<FormList>([
  {
    label: '时间选择器禁用',
    prop: 'time4',
    type: 'time',
    disabledHours(a) {
      console.log(a)
      return [1, 2, 3]
    },
    disabledMinutes(a, b) {
      console.log(a, b)
      return [1, 2, 3]
    },
    disabledSeconds(a, b, c) {
      console.log(a, b, c)
      return [1, 2, 3]
    }
  }
])
const submitForm = (formData: any) => {
  console.log(formData)
}
</script>
<template>
  <XyAddForm isCard :formList="formList" @submit-form="submitForm" />
</template>
